package kite.sso.controller;

import kite.sso.service.impl.TransactionTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述: <br>
 * 所属包名: kite.sso.controller<br>
 * 创建人　: 白剑<br>
 * 创建时间: 07/04/2018 14:41 Wednesday<br>
 * 当前版本: 1.0<br>
 * 修改历史: <br>
 * 修改时间　　　　　修改人　　　　　版本变更　　　　　修改说明<br>
 * -----------------------------------------------------<br>
 * <br>
 */
@RestController
@RequestMapping("/tran")
public class TransactionTestController {

    @Autowired
    private TransactionTestService testService;

    @RequestMapping("/test/{ano}")
    public String testTran(@PathVariable int ano) {
        String result = "";
        try {
            result = testService.tran(ano);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return result;
    }
}
